if(_root.CacheVersGrotte1.hitTest(_root.Meg._x,_root.Meg._y,true) and eval("/Variables:SupportOte") == true)
{
gotoAndStop("Grotte1");
}
if(_root.CacheSerpentFourche.hitTest(_root.Meg._x,_root.Meg._y,true) and Key.isDown(key.SPACE) and eval("/Variables:CouteauPris") != true and eval("/Variables:ObjetSelect") == 3)
if(_root.CacheSerpentCacheCorde.hitTest(_root.Meg._x,_root.Meg._y,true) and Key.isDown(key.SPACE) and eval("/Variables:Corde1Coupee") != true and eval("/Variables:ObjetSelect") == 4)
{
tellTarget("/Animatiques")
{
gotoAndStop("CoupeCorde1");
}
}
if(_root.CacheSupport.hitTest(_root.Meg._x,_root.Meg._y,true) and Key.isDown(key.SPACE) and eval("/Variables:SupportOte") != true and eval("/Variables:ObjetSelect") == 5)
{
tellTarget("/Animatiques")
{
gotoAndStop("PousseSupport");
}
}
if(_root.CachePaguet.hitTest(_root.Meg._x,_root.Meg._y,true) and key.isDown(key.SPACE) and eval("/Variables:PaguetPrise") != true)
if(_root.CacheCorde.hitTest(_root.Meg._x,_root.Meg._y,true) and key.isDown(key.SPACE) and eval("/Variables:Corde1Coupee") != true and eval("/Variables:ObjetSelect") == 4)
{
tellTarget("/Animatiques")
{
gotoAndStop("CoupeCorde1");
}
}
if(_root.CacheGrille.hitTest(_root.Meg._x,_root.Meg._y,true) and key.isDown(key.SPACE) and eval("/Variables:GrilleCoupee") != true and eval("/Variables:ObjetSelect") == 4)
{
tellTarget("/Animatiques")
{
gotoAndStop("CoupeGrille");
}
}
if(!Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up) and Idle == false)
{
Idle = true;
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Idle");
play();
}
}
if(Key.isDown(Key.SHIFT))
{
set("/Variables:Run",true);
}
else
{
set("/Variables:Run",false);
}
if(Key.isDown(Key.RIGHT) and !Key.isDown(Key.UP) and !Key.isDown(Key.DOWN))